import request from "@/utils/request";
// 请求服务管理的维修首页列表
export function repairListApi(params) {
  return request({
    url: "/service/repair",
    method: "get",
    params,
  });
}
// 请求小区的位置
export function community() {
  return request({
    url: "/community",
    method: "get",
  });
}
export function putRepairInfoApi(data) {
  return request({
    url: "/service/repair/" + data.id,
    method: "PUT",
    data,
  });
}

// 获取小区详情
export function getRepairInfoApi(id) {
  return request({
    url: "/service/repair/" + id,
    method: "get",
  });
}
// 删除
export function delRepairInfoApi(id) {
  return request({
    url: "/service/repair/" + id,
    method: "DELETE",
  });
}
